<?php defined('_JEXEC') or die('Restricted access'); ?>

<h1 class="componentheading"><?php echo JText::_( 'House:' ) . ' ' . $this->house->c_name ?></h1>
<div class="congregationcontent">
<div class="encadre">
<h2><?php echo JText::_("House members") ?></h2>


	<table class="list" width="100%">
	<?php
	$k = 0;
	
	for ($i=0, $n=count( $this->items ); $i < $n; $i++)	{
		$row = &$this->items[$i];
		$link 		= JRoute::_( 'index.php?option=com_congregation&controller=profile&task=show&username='. $row->username );
		?>
		<tr class="<?php echo "row$k"; ?>">
			<td valign="top">
				<a href="<?php echo $link ?>">
				<?php echo $row->abbr . " " . $row->name ; ?>
				</a>
			</td>
			<td valign="top">
				<?php echo $row->email ; ?>
			</td>
			<td valign="top">
				<?php echo $row->t_charge; ?>
			</td>
		</tr>
		<?php
		$k = 1 - $k;
	}
	?>
	</table>
</div>
				<?php if($this->house->c_picfile): ?>
				<img src="/home2/media/casa/<?php echo $this->house->c_picfile ; ?>" />
				<?php endif; ?>
				<br /><label for="p_id">
					<?php echo JText::_( 'Province' ); ?>:
				</label>
				<a href="<?php echo JRoute::_("index.php?option=com_congregation&controller=province&task=show&id=" . $this->house->p_id) ?>"><?php echo $this->house->p_name ?></a>
				<br /><label for="c_address">
					<?php echo JText::_( 'Address' ); ?>:
				</label>
			
<?php echo nl2br($this->house->c_address);?>
				<br /><label for="c_country">
					<?php echo JText::_( 'Country' ); ?>:
				</label>
<?php echo $this->house->c_country ?>

				<br /><label for="c_tel">
					<?php echo JText::_( 'Telephones' ); ?>:
				</label>
<?php echo nl2br($this->house->c_tel);?>
				<br /><label for="c_fax">
					<?php echo JText::_( 'Faxes' ); ?>:
				</label>
<?php echo nl2br($this->house->c_fax);?>
				<br /><label for="c_email">
					<?php echo JText::_( 'Emails' ); ?>:
				</label>
<?php echo nl2br($this->house->c_email);?>
				<br /><label for="c_web">
					<?php echo JText::_( 'Web' ); ?>:
				</label>
<?php echo nl2br($this->house->c_web);?>
				<br /><label for="c_found">
					<?php echo JText::_( 'Foundation' ); ?>:
				</label>
<?php echo nl2br($this->house->c_found);?>
				<br /><label for="c_diocese">
					<?php echo JText::_( 'Diocese' ); ?>:
				</label>
<?php echo $this->house->c_diocese;?>
<?php if($this->house->c_info): ?>
<h2><?php echo JText::_("More information") ?></h2>
<?php echo $this->house->c_info ?>
<?php endif; ?>
</div>
